package com.h2cloud.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.sql.Timestamp;
import java.io.Serializable;

/**
 * (Blog)实体类
 *
 * @author makejava
 * @since 2020-09-23 17:56:48
 */
@Getter
@Setter
@ToString
public class Blog implements Serializable {
    private static final long serialVersionUID = -55560879779977498L;

    private Integer id;

    private Integer userid;

    private String username;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp time;

    private String title;

    private String content;

    private Integer status;
}